# with debug symbols
CC = gcc -g

LIBS = 
CFLAGS = -I../libsynqrone

EXEC = synqrone-cli

SRC = synqrone-cli.c $(wildcard ../libsynqrone/*.c)
OBJS = $(SRC:.c=.o)

all: synqrone-cli

.PHONY : distclean clean

synqrone-cli: $(OBJS)
	$(CC) -o $(EXEC) $(OBJS) $(LIBS) $(CFLAGS)

# $(OBJS):$(SRC) is automatic, it uses $(CFLAGS)

distclean: synqrone-cli
	rm -f $(OBJS)
	strip $(EXEC)

clean: 
	rm -f $(EXEC) $(OBJS)

